<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="{$Yee.APP_ROOT}/Yee-tpl/default/css/style.css#" />
	<link rel="stylesheet" href="{$Yee.APP_ROOT}/lib/file-uploader/fileuploader.css#" type="text/css" />
	<title></title>
</head>
<body>
	<div class="wrap">
		<div class="page">
			<div class="header">
				
				<div class="topbar">
					<ul class="tools"></ul>
					<ul class="menu">
						<li><a href="">浏览</a></li>
						<li><a href="{$Yee.APP_ROOT}/upload/">上传</a></li>
					</ul>
				</div>
			
			</div>
			<div class="bodyer">
				
				<div class="workboard">
					<form action="{$Yee.APP_ROOT}/api/put/" method="post" enctype="multipart/form-data">
					
						<p>
							<label>请将PSD文件拖动到此处上传：</label>
							<div id="file-uploader" style="border:5px dotted #ccc; width:300px; min-height:70px; margin:5px 0;"></div>
						</p>
						
						<p>
							<label>项目：</label>
							<select><option>大唐无双推广</option></select>
						</p>
						
						<p>
							<label>标签：</label>
							<input type="input" name="tags" value="" />
						</p>
						
						<input type="hidden" name="username" value="" />
						<input type="hidden" name="authcode" value="" />
					</form>
				</div>
			
			</div>
			<div class="footer"></div>
		</div>
	</div>
<script type="text/javascript" src="{$Yee.APP_ROOT}/lib/file-uploader/fileuploader.js#"></script>
<script type="text/javascript">
	var uploader = new qq.FileUploader({
		// pass the dom node (ex. $(selector)[0] for jQuery users)
		element: document.getElementById('file-uploader'),
		// path to server-side upload script
		action: '{$Yee.APP_ROOT}/api/upload/',
		allowedExtensions:['psd'],
		onSubmit:function(id,file){},
		onComplete:function(id,file,res){
			if(res.success){
				$('.add-log').append('<li>'+file+'</li>');
			}
		}
	});
</script>
</body>
</html>